package org.example.controller;

import jakarta.annotation.Resource;
import org.example.entity.RestBean;
import org.example.entity.vo.response.IndexFormVO;
import org.example.service.CustomizeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/customize")
public class CustomizeController {
    @Resource
    CustomizeService service;

    @GetMapping("/get-index-form")
    public RestBean<List<IndexFormVO>> getPostImage() {
        return RestBean.success(service.getIndexFormVO());
    }
}
